{{#d-modal-body
  title="discourse_post_event.invite_user_or_group.title"
  class="invite-user-or-group-modal"
}}
  <form>
    {{#event-field}}
      {{email-group-user-chooser
        tabindex="1"
        value=invitedNames
        onChange=(action (mut invitedNames))
        options=(hash
          fullWidthWrap=true
          includeMessageableGroups=true
          filterPlaceholder="composer.users_placeholder"
          excludeCurrentUser=true
        )
      }}
    {{/event-field}}
  </form>
{{/d-modal-body}}

<div class="modal-footer">
  {{d-button
    type="button"
    class="btn-primary"
    label="discourse_post_event.invite_user_or_group.invite"
    action=(action "invite")
  }}
</div>
